package uk.co.revisual.domino.controller.cmds
{
	import org.puremvc.as3.multicore.interfaces.IMediator;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	import org.puremvc.as3.multicore.utilities.statemachine.State;
	
	import uk.co.revisual.domino.consts.DominoConsts;
	import uk.co.revisual.domino.proxies.FSMHistoryProxy;

	public class ConfirmStateTransitionCmd extends SimpleCommand
	{
		override public function execute(note:INotification):void{
			var proxy:FSMHistoryProxy = FSMHistoryProxy(facade.retrieveProxy( DominoConsts.PROXY_NAMES.FSM_HISTORY_PROXY ));
			var statemachine:IMediator = facade.retrieveMediator( DominoConsts.MEDIATOR_NAMES.STATE_MACHINE );
			proxy.confirmTransitionToNewState( State( statemachine.getViewComponent() ) );
		}
		
	}
}